Skip to content

feat: agents can direct each other without per-message limits - #1055

Merged
badcuban merged 1 commit into
mainfrom
chore/research-agent-messaging
Nov 23, 2026
Merged

badcuban merged 1 commit into
mainfrom
chore/research-agent-messaging

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

Agents could make 3 requests of each other in a room, and start 5 threads and send them 10 messages (10 and 20 in the lead chat), before they had to wait for the user to write. A lead agent directing other agents for hours or days stopped at the first limit.

The per-message counts are gone, the way T3 Code works. Room asks, reviews, hand-offs and invites, thread_start, thread_send and lead chat passes are no longer counted or refused for volume. We accept T3 Code's risk: two agents can keep messaging each other until the user presses Stop.

Kept on purpose: Stop and its hold, the approval settings, 5 threads per thread_start call, 3 side answers at once, the lead pass ceiling, and outside agents' own limits.

  • requestsSinceUser, batchesSinceUser, startsSinceUser and sendsSinceUser stay in the schema so older clients still decode a thread. Nothing counts or reads them.
  • The limit outcome leaves the room and thread tool results. The web still reads it in old transcripts.
  • Tool descriptions, the lead chat's role text, the app guide and the design docs no longer state limits. The guide says Stop on a parent leaves its threads running and "Stop N working threads" stops them.
  • agentContextBudget.json: on-demand tool definitions are 99 bytes smaller.

docs/design/agent-autonomy-no-limits.md also holds the plan for letting threads start threads to any depth. A review found 13 problems in it, so that part is not built here.

Checks: typecheck, lint, fmt; unit suites for server, web, shared, contracts and client-runtime. The desktop unit tests could not run locally (Electron binary not installed in the worktree). GPT-6.2 Astra reviewed the diff; its two findings in this change are fixed. Two older bugs it found are left for a follow-up: an automatic continue at a usage reset clears the room's Stop hold and invite pause, and a side question doesn't lift a lead pass's block.

Agents could make 3 requests of each other in a room, and start 5 threads
and send them 10 messages (10 and 20 in the lead chat), before they had to
wait for the user to write. A lead agent directing a team for hours stopped
at the first limit.

The counts are gone, the way T3 Code works: room asks, reviews, hand-offs
and invites, thread starts and sends, and lead chat passes are no longer
counted or refused for volume. Stop, the approval settings, 5 threads per
call, 3 side answers at once and the lead pass ceiling stay. The counter
fields stay in the schema so older clients still decode a thread, and the
`limit` outcome leaves the room and thread tool results. Tool descriptions,
the lead role text, the app guide and the design docs say so.

docs/design/agent-autonomy-no-limits.md also holds the plan for nesting
threads to any depth and the review findings that keep it unbuilt for now.
@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Nov 23, 2026 4:24pm UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 210c6b8 Nov 23, 2026
23 checks passed
@badcuban
badcuban deleted the chore/research-agent-messaging branch November 23, 2026 16:39

This branch was previously deployed

1 inactive deployment
Preview — 975bf136 Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant